package com.ctrip.framework.apollo.config.data.extension.websocket;

import com.ctrip.framework.apollo.config.data.extension.initialize.ApolloClientExtensionInitializer;
import com.ctrip.framework.apollo.config.data.extension.properties.ApolloClientProperties;
import org.apache.commons.logging.Log;
import org.springframework.boot.ConfigurableBootstrapContext;
import org.springframework.boot.context.properties.bind.BindHandler;
import org.springframework.boot.context.properties.bind.Binder;

/**
 * @author vdisk <vdisk@foxmail.com>
 */
public class ApolloClientWebsocketExtensionInitializer implements ApolloClientExtensionInitializer {

    private final Log log;

    private final ConfigurableBootstrapContext bootstrapContext;

    public ApolloClientWebsocketExtensionInitializer(Log log, ConfigurableBootstrapContext bootstrapContext) {
        this.log = log;
        this.bootstrapContext = bootstrapContext;
    }

    @Override
    public void initialize(ApolloClientProperties apolloClientProperties, Binder binder, BindHandler bindHandler) {
        throw new UnsupportedOperationException("apollo client websocket support is not complete yet.");
    }
}
